package cn.smbms.dao.provider;

import java.sql.Connection;
import java.util.List;

import cn.smbms.pojo.Provider;
import cn.smbms.pojo.User;

public interface ProviderDao {
	// 增加供应商
	public boolean add(Connection connection, Provider provider)
			throws Exception;

	// 通过供应商名称获取供应商列表-模糊查询
	public List<Provider> getProviderList(Connection connection, String proName,int pageIndex,int pageSize)
			throws Exception;

	// 通过proId删除Provider
	public boolean deleteProviderById(Connection connection, String delId)
			throws Exception;
	// 通过proId获取Provider
	public Provider getProviderById(Connection connection,String id)throws Exception; 
	//修改用户信息
	public boolean modify(Connection connection,Provider provider)throws Exception;
	// 查询总数量
		public int getCounts(String proName,Connection connection) throws Exception;

}
